/**
* @author:kellen
* @contact:xiekellen@hotmail.com
* @company:achivo-gz
* @created on:
* @modified on:
*/

package com.sasis.service.impl;

import java.util.List;

import com.sasis.service.impl.BaseManager;
import com.sasis.model.FlightTransferLuggage;
import com.sasis.dao.FlightTransferLuggageDao;
import com.sasis.service.FlightTransferLuggageManager;

import com.sasis.util.PageList;
import com.sasis.util.PageRequest;

public class FlightTransferLuggageManagerImpl extends BaseManager implements FlightTransferLuggageManager {
    private FlightTransferLuggageDao dao;

    /**
     * Set the Dao for communication with the data layer.
     * @param dao
     */
    public void setFlightTransferLuggageDao(FlightTransferLuggageDao dao) {
        this.dao = dao;
    }

    /**
     * @see com.sasis.service.FlightTransferLuggageManager#getFlightTransferLuggages(com.sasis.model.FlightTransferLuggage)
     */
    public List getFlightTransferLuggages(final FlightTransferLuggage flightTransferLuggage) {
        return dao.getFlightTransferLuggages(flightTransferLuggage);
    }

    /**
     * @see com.sasis.service.FlightTransferLuggageManager#getFlightTransferLuggage(String id)
     */
    public FlightTransferLuggage getFlightTransferLuggage(final String id) {
        return dao.getFlightTransferLuggage(new Integer(id));
    }

    /**
     * @see com.sasis.service.FlightTransferLuggageManager#saveFlightTransferLuggage(FlightTransferLuggage flightTransferLuggage)
     */
    public int saveFlightTransferLuggage(FlightTransferLuggage flightTransferLuggage) {
       return dao.saveFlightTransferLuggage(flightTransferLuggage);
    }

    /**
     * @see com.sasis.service.FlightTransferLuggageManager#removeFlightTransferLuggage(String id)
     */
    public void removeFlightTransferLuggage(FlightTransferLuggage flightTransferLuggage) {
        dao.removeFlightTransferLuggage( flightTransferLuggage);
    }
    public PageList queryForPageList(String listStatementId,  
    		Object parameterObject, PageRequest pageRequest){
	return dao.queryForPageList(listStatementId,   parameterObject, pageRequest);
    }
}
